Skip to content

Add flags to avoid prompts in app config link#7630

Draft
gonzaloriestra wants to merge 1 commit into
mainfrom
cli-interactivity/app-config-link
Draft

Add flags to avoid prompts in app config link#7630
gonzaloriestra wants to merge 1 commit into
mainfrom
cli-interactivity/app-config-link

Conversation

@gonzaloriestra
Copy link
Copy Markdown
Contributor

@gonzaloriestra gonzaloriestra commented May 25, 2026

WHY are these changes introduced?

Related to https://github.com/shop/issues-develop/issues/22869

The interactivity audit found that shopify app config link --client-id <id> can still prompt for a local configuration file name when the target file cannot be inferred. The first attempt solved this by allowing --client-id and --config together, but those flags overlap conceptually: --client-id selects the remote app, while --config selects an existing local app configuration.

WHAT is this pull request doing?

  • Adds --file-name to choose the config file that app config link should create.
  • Adds --force to overwrite an existing config file without prompting.
  • Adds command/service coverage and refreshes generated command docs.

How to test your changes?

shopify app config link --client-id <client-id> --file-name staging --force

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've considered analytics changes to measure impact
  • The change is user-facing, so I've added a changelog entry with pnpm changeset add

@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label May 25, 2026
@gonzaloriestra gonzaloriestra force-pushed the cli-interactivity/app-config-link branch 2 times, most recently from 22f6bf8 to 1dcfefd Compare June 1, 2026 11:58
@gonzaloriestra gonzaloriestra changed the title Allow app config link to target config by client ID Add flags to avoid prompts in app config link Jun 1, 2026
@gonzaloriestra gonzaloriestra force-pushed the cli-interactivity/app-config-link branch from 1dcfefd to 7bc268b Compare June 1, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant